package com.yex.dao;


import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.yex.entity.OrderEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 订单
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2018-12-26 15:09:15
 */
public interface OrderDao extends BaseMapper<OrderEntity> {

    Integer updatePayOrder(@Param("id") Integer id);

    List<Map<String,Object>> selectPageFilter(Page<Map<String,Object>> page, String filter);

    Integer updateOrderAuditing(@Param("id") Integer id);

    Integer updateOrderNoAuditing(@Param("id") Integer id);

    Integer updateOrderRevoke(@Param("id") Integer id);

    Integer updateOrderOvertime(@Param("id") Integer id);

    List<OrderEntity> selectOrderNoPayByUserId(@Param("userId") Integer userId);

}
